#include<bits/stdc++.h>
using namespace std;

void Convert(unsigned int count)
{
	string arr="";
	string letter="ABCDEF";
	unsigned int a=0;
	while(count)
	{
		a=count%16;
		count/=16;
		if(a<10)
			arr+=to_string(a);
		else
			arr.push_back(letter[a-10]);
	}
	reverse(arr.begin(),arr.end());
	for(auto& a:arr)
	{
		cout<<a;
	}
}

int main()
{
	unsigned int x=254;
	Convert(x);
	return 0;
}
